﻿using System;
namespace Moonlite.ExtensionApi
{
    public class ExtensionException : Exception
    {
        public ExtensionException(string exceptionMessage, Type extensionType, string callStack)
            : base("An exception has been thrown from an extension: " + exceptionMessage + Environment.NewLine + "From " + extensionType.FullName + " in assembly \"" + extensionType.AssemblyQualifiedName + Environment.NewLine + "Call stack: " + Environment.NewLine + callStack)
        {
        }
    }
}
